import 'package:common/base/base_state.dart';
import 'package:common/base/base_stateful_widget.dart';
import 'package:flutter/material.dart';

import 'chat_page_body.dart';

class ChatPage extends BaseStatefulWidget {
  const ChatPage({super.key});

  @override
  State<ChatPage> createState() => _ChatPageState();
}

class _ChatPageState extends BaseState<ChatPage> {

  @override
  void onStateInit() {
    rxTitle.value = "PageView+TabBar+TabBarView+ListView";
  }

  @override
  bool onNeedBack() {
    return false;
  }

  @override
  bool onNeedCachePage() {
    return true;
  }

  @override
  Widget onBodyCreate() {
    ChatPageBody chatPageBody = ChatPageBody();
    return chatPageBody.createBody(context);
  }
}
